package com.eshop.service;

import com.eshop.model.Order;
import com.eshop.model.OrderDetail;
import com.eshop.model.myPojo.CartGoods;

import java.util.List;

public interface OrderService {
    public Order getOrderByOrderId(int orderId);

    public Order getNewOrderByUserId(int userId);

    public List<Order> getOrderByUserId(int userId);

    public List<Order> getOrderByStatusAndUserId(int status,int userId);

    public void addOrder(Order order);

    public void updateOrderStatus(Order order);


    public OrderDetail getOrderDetailByOrderDetailId(int orderDetailId);

    public List<OrderDetail> getOrderDetailByOrderId(int orderId);

    public void addOrderDetail(int orderId, CartGoods cartGoods);
}
